// 代码2
int main()
{
	int n = 1;
	int sum = 1;
	int ret = 0;
	do 
	{
		sum = n * sum;
		ret = ret + sum;
		n++;
	} while (n <= 10);
	printf("%d\n", ret);
	return 0;
}